#pragma once
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>

#define Die(code)   \
    do              \
    {               \
        exit(code); \
    }               \
    while (0)       \
        ;

#define CONV(ptr) ((struct sockaddr *)(ptr))
enum
{
    SOCKETERR = 1,
    BINDERR,
    USAGEERR,
    SEV_RECV_ERR
};
const int gdefaultsockfd = -1;
const int gbacklog = 8;